<script setup lang="ts">
import { useCountDown } from '@/utils/hooks'
// const { count, resume } = useCountDown()
/* const clickFn = () => {
  count.value = 3
  resume()
} */
const { count, start } = useCountDown(10)
const clickFn = () => {
  start()
}

// const timeId = setInterval(() => {
//   console.log(112233)
// }, 1000)
// onUnmounted(() => {
//   clearInterval(timeId)
// })
</script>
<template>
  <div>
    <button @click="clickFn">倒计时{{ count }}</button>
  </div>
</template>
<style scoped>
</style>